package com.infore.siteManagement.entity.equipment;

import java.io.Serializable;
import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;

/**
 * The persistent class for the EQUIP_SPARE_PART database table. 仪器下备品备件
 */
@Entity
@Table(name = "EQUIP_SPARE_PART")
@NamedQuery(name = "EquipSparePart.findAll", query = "SELECT e FROM EquipSparePart e")
public class EquipSparePart implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "ID")
	@GeneratedValue(generator = "uuidGenerator")
	@GenericGenerator(name = "uuidGenerator", strategy = "uuid") // UUID生成策略
	private String id;

	/** 更换周期 **/
	@Column(name = "CHANGE_CIRCLE")
	private String changeCircle;

	/** 仪器模板id **/
	@Column(name = "EQUIP_MODEL_ID")
	private String equipModelId;

	/** 物料编码 **/
	@Column(name = "METARIAL_CODE")
	private String metarialCode;

	/** 物料描述 **/
	@Column(name = "METARIAL_DESCRIP")
	private String metarialDescrip;

	public EquipSparePart() {
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getChangeCircle() {
		return this.changeCircle;
	}

	public void setChangeCircle(String changeCircle) {
		this.changeCircle = changeCircle;
	}

	public String getEquipModelId() {
		return this.equipModelId;
	}

	public void setEquipModelId(String equipModelId) {
		this.equipModelId = equipModelId;
	}

	public String getMetarialCode() {
		return this.metarialCode;
	}

	public void setMetarialCode(String metarialCode) {
		this.metarialCode = metarialCode;
	}

	public String getMetarialDescrip() {
		return this.metarialDescrip;
	}

	public void setMetarialDescrip(String metarialDescrip) {
		this.metarialDescrip = metarialDescrip;
	}

}